package self.rss.proto.util;

import self.rss.proto.R;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.widget.Button;

public class OnPressInfoButton extends Button {

	public OnPressInfoButton(Context context) {
		super(context);
		}

		public OnPressInfoButton(Context context, AttributeSet attrs){
		super(context, attrs);
		}

		@Override
		protected void onDraw(Canvas canvas) {
		//sets the button image based on whether the button in its pressed state
		setBackgroundDrawable(getResources().getDrawable(isPressed()?R.drawable.ino_button_pressed : R.drawable.ino_button));
		super.onDraw(canvas);
		}
		
}
